@import './reset';

.container{
    // 主题颜色
    $themeColor: #1b2a65;
    $themeColor-Opa: #1b2a653d;

    // 居中盒子
    %boxCenter {
        display: flex;
        flex-direction: column;
        align-items: center;
        // background-color: greenyellow;
    }

    header {
        background-color: #fff;
        @extend %boxCenter;

        @import './nav';

        // 横幅大图
        .banner {
            max-width: 100%;
            @extend %boxCenter;
            position: relative;

            img {
                width: 100%;
                display: block;
            }

            .imgTitle{
                width: 1200px;
                // border: 1px solid red;
                position: absolute;
                bottom: 50px;
                color: #cfcfcf;

                p:first-child{
                    font-size: 70px;
                }
                p:last-child{
                    font-size: 50px;
                }
            }
        }
    }

    main{

        section:first-child{
            @extend %boxCenter;
            border-bottom: 1px solid $themeColor-Opa;

            .content_1{
                width: 1200px;
                height: 65px;
                ul{
                    margin-top: 2px;
                    width: 100%;
                    height: 100%;
                    display: flex;
                    justify-content: space-around;
                    align-items: flex-end;
                    li{
                        cursor: pointer;
                        padding: 20px 55px;
                        border-bottom: 2px solid transparent;

                        &:first-child{
                            color: $themeColor;
                            border-bottom-color: $themeColor;
                        }
                        
                        &:hover{
                            color: $themeColor;
                            border-bottom-color: $themeColor;
                        }
                    }
                }
            }
        }

        section:last-child{
            @extend %boxCenter;

            &>div{
                width: 1200px;
            }
            
            .titleBox{
                text-align: center;
                margin: 35px 0 50px 0;
                p{
                    font-size: 25px;
                    color: #999999;
                }
                h2{
                    font-size: 35px;
                    color: #333333;
                    margin-bottom: 17px;
                    font-weight: 400;

                }
                span{
                    display: block;
                    width: 150px;
                    height: 50px;
                    line-height: 50px;
                    font-size: 23px;
                    background-color: $themeColor;
                    color: #ffffff;
                    margin: 0 auto;
                }
            }

            .content_2{
                height: 625px;
                overflow: hidden;
                p{
                    text-indent: 2em;
                    color: #666666;
                    font-size: 14px;
                    line-height: 20px;
                }

            }

            .content_3{
                ul{
                    width: 100%;
                    display: flex;
                    flex-wrap: wrap;
                    justify-content: space-around;
                    align-items: flex-end;
                    border: 1px solid $themeColor;
                    border-radius: 10px;
                    li{
                        width: 515px;
                        min-height: 200px;
                        margin: 35px;

                        p{
                            text-indent: 2em;
                            color: #666666;
                            font-size: 14px;
                            line-height: 22px;
                        }

                        img{
                            display: block;
                            width: 100%;
                        }
                    }
                }
            }

            .content_4{
                ul{
                    width: 100%;
                    margin-bottom: 35px;
                    display: flex;
                    justify-content: space-between;
                    li{
                        width: 375px;
                        height: 585px;
                        color: #333333;
                        border: 1px solid transparent;
                        cursor: pointer;
                        &:hover{
                            border: 1px solid $themeColor-Opa;
                        }

                        img{
                            width: 100%;
                            display: block;
                            margin-bottom: 20px;
                        }

                        h3{
                            text-align: center;
                            font-size: 24px;
                            font-weight: 400;
                        }

                        p{
                            font-size: 14px;
                            padding: 10px 18px;
                            line-height: 22px;
                        }

                        &:last-child p{
                            text-indent: 2em;
                        }
                    }
                }
            }
        }
    }
    @import './footer';
}